<?php

// No direct access
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');

class CprojectViewCproject extends JView {


    public function display($tpl = null) {
        $app = JFactory::getApplication();
        $this->item = $this->get('Item');

        // Check for errors.
        if (count($errors = $this->get('Errors'))) {
            JError::raiseError(500, implode('<br />', $errors));
            return false;
        }

        parent::display($tpl);
    }

}
